<template>
	<view class="container">
		<!-- Toolbar -->
		<pyh-nv ref="nv" :config="nvConfig"></pyh-nv>

		<!-- <map class="mapContainer" :latitude="latitude" :longitude="longitude" :markers="covers"></map> -->

		<map id="map" :style="'top:' + mapTop + ';'" class="map-wrap" style="width: 100%; height: 65vh;"
			:latitude="startLat2" :longitude="startLng2" :polyline="polyline" :markers="marker" :scale="scale"></map>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				nvConfig: {
					title: "运单详情",
					bgColor: "#ffffff",
					color: "#000000",
					fixedAssist: {
						hide: true,
					},
					transparent: {
						initColor: "#000000",
					}
				},
				touchS: 0,
				touchE: 0,
				touchD: 0,
				mapTop: '',
				statusBarHeight: 20,
				timer: null,
				shareType: 0, //0正常 1分享
				outboundVolumeArea: 0,
				outboundVolumeBlock: 0,
				outboundVolumeWeight: 0,
				componentList: [],
				emptyList: [],
				item: {},
				list: [],
				allData: {},
				tenantCode: null,
				id: null,
				scrollType: 2, //1全屏 2中屏 3 小屏幕
				scrollViewHeight: "calc(100vh - 200rpx)",
				scrollViewHeightCopy: "calc(100vh - 200rpx)",
				scrollViewHeightCopy3: "calc(100vh - 500rpx)",
				loading: false, //控制接口的请求
				freshing: false, //控制下拉刷新
				scrollTop: 0,

				// 已发出时间
				departureTime: 0, //分钟
				startLat: 39.909,
				startLng: 116.39742,
				startLat2: 39.909,
				startLng2: 116.39742,
				destLat: 40.013,
				destLng: 118.685,
				marker: [],
				polyline: [],
				scale: 12, //地图缩放程度
			}
		},
		onLoad() {

		},
		computed: {
			actionBarHeight() {
				return parseInt(88 * uni.getSystemInfoSync().windowWidth / 750) + uni.getSystemInfoSync().statusBarHeight
			}
		},
		methods: {}
	}
</script>

<style lang="scss">
	page {
		background-color: #f4f4f4;
	}

	.container {
		height: 100%;
		min-height: 100%;
		display: flex;
		flex-direction: column;
	}

	.mapContainer {
		width: 100%;
		height: 70vh;
	}
</style>